package demo;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 张宇田
 * Date: 2024-11-07
 * Time: 22:49
 */
public class MySingleList {
    static class ListNode  {
        public int val;
        public ListNode next;
        //实例化对象的时候 放第一个值
        public ListNode(int val){
            this.val = val;
        }
    }
    public ListNode head;

    public void add (int x){
        ListNode list = new ListNode(1);

    }
}
